FTYP

Syntax: FTYP [(#channel)]     
    or: FTYP (\file)    (Toolkit II and THOR only)
Location: Toolkit II, THOR XVI, BTool

This function returns the file type of a file which is already open as #channel (the default channel is #3) or else the second variant can be used (which supports the Toolkit II default data device and sub-directories) to check a given file. The file type is one byte in the file header which by convention represents the type of the file.

There are only four standard types:

FTYP=1   Executable jobs,
FTYP=2   Sinclair Relocatable Object File (SROFF) modules
FTYP=255 Sub-directories on level-2 and level-3 drivers
FTYP=0   Everything else.

CROSS-REFERENCE:
See HEADR for reading the whole file header and EX for executing jobs. 
FILE_TYP does the same as FTYP but has a slightly different syntax.
